package com.carkeeper.feign;


import com.carkeeper.entity.Result;
import com.carkeeper.pojo.Admin;
import com.sun.org.apache.regexp.internal.RE;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "department")
public interface PlatformUserFeign {

    @GetMapping("/admin/findByUsername/{id}")
    public Result<Admin> findById(@PathVariable("id") Integer id);

    @GetMapping("/admin/findByUsername/{username}")
    Result<Admin> findByUsername(@PathVariable("username") String username);
}
